package messenger;

import junit.framework.Assert;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class MessageTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testPassword() throws Exception {
		System.out.println(Security.getSaltedHash("Test"));
		Assert.assertEquals(true,
				Security.check("Test", Security.getSaltedHash("Test")));
		Assert.assertEquals(false,
				Security.check("test", Security.getSaltedHash("Test")));
	}

}
